// 购物车页面相关接口
import request from "../utils/request.js"

export const cartHotList=()=>{//购物车推荐的商品
    return request.get(`/yd/mall/productSales?pageIndex=1&pageSize=20&typeId=HOT_DRUGS`)
}

export const ownCartList=()=>{//购物车里面的商品列表
    return request.get(`/yd/shopping/cart/info`)
}

export const cartChange=(obj)=>{//改变购物车里面的商品信息(数量，商品前面的单选)
    return request.post(`/yd/shopping/cart/edit`,obj)
}

export const storeChange=(obj)=>{//购物车商店的选择变化
    return request.post(`/yd/shopping/cart/edit`,obj)
}

export const allChange=(obj)=>{//购物车全选的变化
    return request.post(`/yd/shopping/cart/edit`,obj)
}

export const cartDel=(productIdsObj)=>{//购物车删除
    return request.post(`/yd/shopping/cart/dele`,productIdsObj)
}


